From: Gregor Niehl Date: Sat, 20 Apr 2024 16:47:25 +0000 (+0200) Subject: swipeTracker: Allow touchpad gestures with >3 fingers X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~226^2^2~175 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=6a4cb2ce787184163c820a44d2adab3aa41d8bf0;p=gnome-shell.git swipeTracker: Allow touchpad gestures with >3 fingers Make it easier to switch workspaces by also allowing swipes with 4 or more fingers. This is consistent with how we behave for touchscreen swipes too. Part-of: --- diff --git a/js/ui/swipeTracker.js b/js/ui/swipeTracker.js index cef904c05..a78fb2898 100644 --- a/js/ui/swipeTracker.js +++ b/js/ui/swipeTracker.js @@ -126,7 +126,7 @@ const TouchpadSwipeGesture = GObject.registerClass({ if (event.get_gesture_phase() === Clutter.TouchpadGesturePhase.BEGIN) this._state = TouchpadState.NONE; - if (event.get_touchpad_gesture_finger_count() !== GESTURE_FINGER_COUNT) + if (event.get_touchpad_gesture_finger_count() < GESTURE_FINGER_COUNT) return Clutter.EVENT_PROPAGATE; if ((this._allowedModes & Main.actionMode) === 0)